package com.novel.bean;

public class ResultDomain{
    private static final long serialVersionUID = 1L;
    private boolean success;
    private String resultdesc;
    private Object object;

    public ResultDomain() {
        setSuccess(true);
    }

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public boolean getSuccess() {
        return success;
    }

    private void setSuccess(boolean success) {
        this.success = success;
    }

    public void setFail(String resultdesc){
        setResultdesc(resultdesc);
        setSuccess(false);
    }

    public void setSuccess(String resultdesc){
        setResultdesc(resultdesc);
        setSuccess(true);
    }
    public void setFail(String resultdesc,Object object){
        setResultdesc(resultdesc);
        setSuccess(false);
        setObject(object);
    }

    public void setSuccess(String resultdesc,Object object){
        setResultdesc(resultdesc);
        setSuccess(true);
        setObject(object);
    }

    public String getResultdesc() {
        return resultdesc;
    }

    public void setResultdesc(String resultdesc) {
    	this.resultdesc = resultdesc;
    }

    public Object getObject() {
        return object;
    }

    public void setObject(Object object) {
        this.object = object;
    }
}
